﻿<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ include file="header.jsp"%>
<script type="text/javascript">
function checkForm(){
	if(form1.name.value==''){
		alert('用户名不能为空');
		return false;
	}
	if(form1.pw.value.length<1){
		alert('密码长度不能小于1');
		return false;
	}
	return true;
}
</script>
<!--main-->
<div id="mainContent">
<br/>
<%
	String tip=(String)request.getAttribute("tip");
	if(tip!=null)
		out.println("<font color='red'>"+tip+"</font>");
%>
<form name='form1' action='login' method='POST' onSubmit='return checkForm();'>
	姓名：<input type='text' name='name' style='width:180px;' /><br/>
	密码：<input type='password' name='pw' style='width:180px;' /><br/>
	<input type='submit' value='登录'/>
	<input type='reset' value='重置'/><br/>
</form>
<br/>
</div>
<%@ include file="footer.jsp"%>